<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/2
  Time: 8:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        html {
            height: 100%;
            width: 100%;
            overflow: hidden;
            margin: 0;
            padding: 0;
            background: url(images/1612843817698.jpg) no-repeat 0px 0px;
            background-repeat: no-repeat;
            background-size: 100% 100%;
            -moz-background-size: 100% 100%;
        }

        body {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
        }

        #loginDiv {
            width: 37%;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 500px;
            background-color: rgba(75, 81, 95, 0.3);
            box-shadow: 7px 7px 17px rgba(52, 56, 66, 0.5);
            border-radius: 100px;

        }

        #name_trip {
            margin-left: 50px;
            color: red;
        }

        p {
            margin-top: 30px;
            margin-left: 20px;
            color: black;
        }

        input {
            margin-left: 15px;
            border-radius: 5px;
            border-style: hidden;
            height: 30px;
            width: 140px;
            background-color: rgba(216, 191, 216, 0.5);
            outline: none;
            color: #f0edf3;
            padding-left: 10px;

        }

        .button {
            border-color: cornsilk;
            background-color: rgba(100, 149, 237, .7);
            color: aliceblue;
            border-style: hidden;
            border-radius: 5px;
            width: 100px;
            height: 31px;
            font-size: 16px;
        }
        .sexDiv {
            margin-top: 10px;
            margin-left: 20px;
            color: black;
        }

        .sexDiv>input, .hobby>input {
            width: 20px;
            height: 15px;
        }

    </style>

</head>

<body>
<div id="loginDiv">
    <form action="<%=request.getContextPath()%>/register" id="form" method="post">
        <h1 style="text-align: center;color: black;">注册账号</h1>
        <p>用户名:<input id="userNname" name="name" type="text"><label id="name_trip"></label></p>

        <p>密&nbsp;&nbsp;&nbsp;码:  <input id="password" name="password" type="password"><label id="password_trip"></label></p>

        <p>
            用户类型:
            <select name="type" id="userType">
                <option value="0" name="type">请选择</option>
                <option value="普通类型" name="type">普通类型</option>
                <option value="VIP类型" name="type">VIP类型</option>
                <option value="SVIP类型" name="type">SVIP类型</option>
            </select>
            <label id="type_trip"></label>
        </p>
        <div class="sexDiv">
            用户性别:
            <input class="userSex" name="sex" value="男" type="radio" checked="checked">男
            <input class="userSex" name="sex" value="女" type="radio">女
            <label id="sex_trip"></label>
        </div>
        <p class="hobby" >
            兴趣爱好:
            <input type="checkbox" name="read" value="read">阅读
            <input type="checkbox" name="music" value="music">音乐<br>
            <input type="checkbox" name="sport" value="sport">运动
            <input type="checkbox" name="game" value="game">打游戏
            <label id="hobby_trip"></label>
        </p>
        <p>
            电子邮件:
            <input id="email" type="text" name="email" required>
            <label id="emil_trip"></label>
        </p>

        <div  style="text-align: center;margin-top: 30px;">
            <input type="submit" class="button" value="注册">
            <input type="reset" class="button" value="重置">
        </div>
    </form>
</div>

</body>

</html>
